package com.answer.petadoption.service.impl;

import com.answer.petadoption.mapper.ApplicationMapper;
import com.answer.petadoption.model.entity.Application;
import com.answer.petadoption.service.ApplicationService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class ApplicationServiceImpl implements ApplicationService {
    @Autowired
    private ApplicationMapper applicationMapper;

    @Override
    public Application getApplicationById(Long id) {
        return applicationMapper.getApplicationById(id);
    }

    @Override
    public void insertApplication(Application application) {
        applicationMapper.insertApplication(application);
    }

    @Override
    public void updateApplication(Application application) {
        applicationMapper.updateApplication(application);
    }

    @Override
    public void deleteApplication(Long id) {
        applicationMapper.deleteApplication(id);
    }
}